﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Intrinsics.X86;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 收款单
    /// </summary>
    /// 

    public class SalesInvoiceDTO
    {
        public int total { get; set; }
        public bool success { get; set; }
        public List<SalesInvoice_Rows> rows { get; set; }

    }

    public class SalesInvoice_Rows
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string number { get; set; }
        /// <summary>
        /// 往来单位
        /// </summary>
        public string counterparty { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public string amount { get; set; }
        /// <summary>
        /// 币别
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 开票状态
        /// </summary>
        public string invoice { get; set; }
        /// <summary>
        /// 发票编号
        /// </summary>
        public string invoiceNo { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public string warehouse { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public string division { get; set; }
        /// <summary>
        /// 是否签名
        /// </summary>
        public string signed { get; set; }


        /// <summary>
        /// 负责人
        /// </summary>
        public string responsible { get; set; }
        /// <summary>
        /// 评论
        /// </summary>
        public string comment { get; set; }
        /// <summary>
        /// EDO状态
        /// </summary>
        public string EDOstatus { get; set; }
        /// <summary>
        /// 银行账户
        /// </summary>
        public string bankAccount { get; set; }
        /// <summary>
        /// 合同
        /// </summary>
        public string contract { get; set; }
        /// <summary>
        /// 应付单
        /// </summary>
        public string payment { get; set; }


        /// <summary>
        /// 明细列表
        /// </summary>
        public List<SalesInvoice> items { get; set; }
    }

    public class SalesInvoice
    {
        /// <summary>
        /// id
        /// </summary>
        public string rowId { get; set; }
        /// <summary>
        /// RowId
        /// </summary>
        public string RowId { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string number { get; set; }
        /// <summary>
        /// 往来单位
        /// </summary>
        public string counterparty { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public string amount { get; set; }
        /// <summary>
        /// 币别
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 开票状态
        /// </summary>
        public string invoice { get; set; }
        /// <summary>
        /// 发票编号
        /// </summary>
        public string invoiceNo { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public string warehouse { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public string division { get; set; }
        /// <summary>
        /// 是否签名
        /// </summary>
        public string signed { get; set; }


        /// <summary>
        /// 负责人
        /// </summary>
        public string responsible { get; set; }
        /// <summary>
        /// 评论
        /// </summary>
        public string comment { get; set; }
        /// <summary>
        /// EDO状态
        /// </summary>
        public string EDOstatus { get; set; }
        /// <summary>
        /// 银行账户
        /// </summary>
        public string bankAccount { get; set; }
        /// <summary>
        /// 合同
        /// </summary>
        public string contract { get; set; }
        /// <summary>
        /// 应付单
        /// </summary>
        public string payment { get; set; }

        /// <summary>
        /// 应付单号
        /// </summary>
        public string paymentNO { get; set; }
        /// <summary>
        /// 销售出库日期
        /// </summary>
        public string paymentDate { get; set; }


        /// <summary>
        /// 产品名称
        /// </summary>
        public string productName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string productNo { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string qty { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        /// 含税单价
        /// </summary>
        public string unitPrice { get; set; }
        /// <summary>
        /// 含税价格
        /// </summary>
        public string sum { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public string tax { get; set; }
        /// <summary>
        /// 增值税
        /// </summary>
        public string valueAddedTax { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public string total { get; set; }
        /// <summary>
        /// 会记科目
        /// </summary>
        public string account { get; set; }
        /// <summary>
        /// 货源国家
        /// </summary>
        public string country { get; set; }


    }
}
